package com.codingfly.core.exception;

public class AuthenticationException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private int httpCode = 401;

    public AuthenticationException() {
        super("未登录或者登录失效");
    }

    public AuthenticationException(String errMsg) {
        super(errMsg);
    }

    public int getHttpCode() {
        return this.httpCode;
    }

    public void setHttpCode(int httpCode) {
        this.httpCode = httpCode;
    }

}